<template>
  <div class="registerbox">
    <el-card class="gray-card no-border no-margin-top" shadow="never">
    <el-form ref="form" :model="form" class="form" >
      <el-row >
        <el-col :span="12">
          <el-form-item label="文件编码：">
            <el-input v-model="form.dno" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="来源科室：">
            <el-input v-model="form.dno" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row >
        <el-col :span="24">
          <el-form-item label="文件名称：">
            <el-input v-model="form.dno" type="textarea" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row >
        <el-col :span="12">
          <el-form-item label="文件类型：">
            <el-input v-model="form.dno" disabled></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="所属项目：">
            <el-input v-model="form.dno" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row >
        <el-col :span="24">
          <el-form-item label="内容简介：">
            <el-input v-model="form.dno" type="textarea" disabled></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <el-form-item label="文件附件：">
        <el-upload
          disabled
          class="avatar-uploader"
          action="https://jsonplaceholder.typicode.com/posts/"
          :show-file-list="false"
          :on-success="handleAvatarSuccess"
          :before-upload="beforeAvatarUpload">
          <img v-if="imageUrl" :src="imageUrl" class="avatar">
          <i v-else class="el-icon-plus avatar-uploader-icon"></i>
        </el-upload>
      </el-form-item>

      <el-form-item label="备注：">
        <el-input v-model="form.dno" type="textarea" disabled></el-input>
      </el-form-item>
    </el-form>
    </el-card>
    <el-card >
      <div class="fr">
        <el-button type="primary" @click="onSubmit">确定</el-button>
        <el-button @click="toBack()">取消</el-button>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "addExam",
  props: {
  },
  data() {
    return {
      title: '新增',
      form: {
        dno: '',
        dname: '',
        dpno: '',
        pro: '',
        sample: '',
        dep: [],
        mainMan: '',
        manager: '',
        date: '',
        factory: '',
        desc: '',
        func: '',
        dimg: '',
        dapp: '',
      }
    }
  },
  methods: {
    toBack() {
      this.$emit('func', false)
    }
  }
}
</script>

<style scoped>

</style>
